using System;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Relatorios_Default : Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void customFieldValidator2_ServerValidate(object sender, ServerValidateEventArgs e)
    {
        e.IsValid = (cal2.SelectedDate != DateTime.MinValue);
    }

    protected void customFieldValidator1_ServerValidate(object sender, ServerValidateEventArgs e)
    {
        e.IsValid = (cal1.SelectedDate != DateTime.MinValue);
    }

    protected void lnkShow_Click(object sender, EventArgs e)
    {
        string url = rblMain.SelectedItem.Value;
        url.Replace("@1", cal1.SelectedDate.ToString());
        url.Replace("@2", cal2.SelectedDate.ToString());

        Response.Redirect(url);
    }
}